import Vue from 'vue'
import App from './App'
import cuCustom from './components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)

Vue.config.productionTip = false
App.mpType = 'app'

import * as comm from './util/common.js';
import * as db from './util/db.js';
import * as Api from './util/api.js';
import * as config from './util/config.js';
import validate from './util/validate.js';
var day = require('dayjs');
var customParseFormat = require('dayjs/plugin/customParseFormat')
var isSameOrAfter = require('dayjs/plugin/isSameOrAfter')
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore')
day.extend(isSameOrBefore)
day.extend(isSameOrAfter)
day.extend(customParseFormat)
import store from './store'

Vue.prototype.$comm = comm;
Vue.prototype.$db = db;
Vue.prototype.$day = day;
Vue.prototype.$api = Api;
Vue.prototype.$url = config;
Vue.prototype.$store = store;
Vue.prototype.$validate = validate;

const app = new Vue({
	...App
})
app.$mount()
